home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 5: The Fifth Dimension
/
17 Bit - The Fifth Dimension (1995)(17 Bit Software)[!].iso
/
files
/
3581.dms
/
3581.adf
/
ControlPanel
/
Bin
/
SpotNewsGroups
< prev
next >
Wrap
Text File
|
1995-02-01
|
1KB
|
36 lines
/* Rexx Script To Add Newsgroups To Spot Setup */
if ~open(initial, "env:NGA") then call firsttime()
address command "copy mail:spot.areas.def mail:spot.areas"
address command "copy amigate:amigate.areas.def amigate:amigate.areas"
call open(newsgroups, "uulib:newsgroups", r)
call open(gateareas, "amigate:amigate.areas", a)
call open(spotareas, "uumail:spot.areas", a)
call seek(gateareas, 0, "E")
call seek(spotareas, 0, "E")
do until EOF(newsgroups)
NewsLine = readln(newsgroups)
NewsGroup = word(newsline,1)
NewsDays = word(newsline,2)
if newsline ~== "" then do
amigate = "AREA + " || newsgroup || " " || newsgroup
spot = "AREA """ || newsgroup || """ 2:999/99.9 " || newsgroup || " origgroup -1 orig -1 REPLY 1 SIG 0 TAGLINES 0 KEEP " || Newsdays || " KEEPDAYS USENET"
call writeln(gateareas, amigate)
call writeln(spotareas, spot)
end
end
call close(newsgroups)
call close(gateareas)
call close(spotareas)
exit
firsttime:
address command "Copy mail:spot.areas mail:spot.areas.def"
address command "Copy amigate:amigate.areas amigate:amigate.areas.def"
address command "Echo yes > envarc:nga"
address command "Echo Yes > env:nga"
return